package com.ruoyi.pressure.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pressure.mapper.KyLaneDblcHistoryMapper;
import com.ruoyi.pressure.domain.KyLaneDblcHistory;
import com.ruoyi.pressure.service.IKyLaneDblcHistoryService;

/**
 * 顶板离层测点实时信息数据项说明Service业务层处理
 * 
 * @author lth
 * @date 2024-12-10
 */
@Service
public class KyLaneDblcHistoryServiceImpl extends ServiceImpl<KyLaneDblcHistoryMapper, KyLaneDblcHistory> implements IKyLaneDblcHistoryService //修改
{
    @Autowired
    private KyLaneDblcHistoryMapper kyLaneDblcHistoryMapper;

    /**
     * 查询顶板离层测点实时信息数据项说明
     * 
     * @param kyLaneDblcRealId 顶板离层测点实时信息数据项说明主键
     * @return 顶板离层测点实时信息数据项说明
     */
    @Override
    public KyLaneDblcHistory selectKyLaneDblcHistoryByKyLaneDblcRealId(String kyLaneDblcRealId)
    {
        return kyLaneDblcHistoryMapper.selectKyLaneDblcHistoryByKyLaneDblcRealId(kyLaneDblcRealId);
    }

    /**
     * 查询顶板离层测点实时信息数据项说明列表
     * 
     * @param kyLaneDblcHistory 顶板离层测点实时信息数据项说明
     * @return 顶板离层测点实时信息数据项说明
     */
    @Override
    public List<KyLaneDblcHistory> selectKyLaneDblcHistoryList(KyLaneDblcHistory kyLaneDblcHistory)
    {
        return kyLaneDblcHistoryMapper.selectKyLaneDblcHistoryList(kyLaneDblcHistory);
    }

    /**
     * 新增顶板离层测点实时信息数据项说明
     * 
     * @param kyLaneDblcHistory 顶板离层测点实时信息数据项说明
     * @return 结果
     */
    @Override
    public int insertKyLaneDblcHistory(KyLaneDblcHistory kyLaneDblcHistory)
    {
        return kyLaneDblcHistoryMapper.insertKyLaneDblcHistory(kyLaneDblcHistory);
    }

    /**
     * 修改顶板离层测点实时信息数据项说明
     * 
     * @param kyLaneDblcHistory 顶板离层测点实时信息数据项说明
     * @return 结果
     */
    @Override
    public int updateKyLaneDblcHistory(KyLaneDblcHistory kyLaneDblcHistory)
    {
        kyLaneDblcHistory.setUpdateTime(DateUtils.getNowDate());
        return kyLaneDblcHistoryMapper.updateKyLaneDblcHistory(kyLaneDblcHistory);
    }

    /**
     * 批量删除顶板离层测点实时信息数据项说明
     * 
     * @param kyLaneDblcRealIds 需要删除的顶板离层测点实时信息数据项说明主键
     * @return 结果
     */
    @Override
    public int deleteKyLaneDblcHistoryByKyLaneDblcRealIds(String[] kyLaneDblcRealIds)
    {
        return kyLaneDblcHistoryMapper.deleteKyLaneDblcHistoryByKyLaneDblcRealIds(kyLaneDblcRealIds);
    }

    /**
     * 删除顶板离层测点实时信息数据项说明信息
     * 
     * @param kyLaneDblcRealId 顶板离层测点实时信息数据项说明主键
     * @return 结果
     */
    @Override
    public int deleteKyLaneDblcHistoryByKyLaneDblcRealId(String kyLaneDblcRealId)
    {
        return kyLaneDblcHistoryMapper.deleteKyLaneDblcHistoryByKyLaneDblcRealId(kyLaneDblcRealId);
    }
}
